package marmalius.player;

import marmalius.item.ItemService;
import marmalius.item.ItemTemplate;

public class Item {
	private ItemTemplate itemTemplate;
	private int count;
	
	public Item(ItemTemplate itemTemplate, int count) {
		this.itemTemplate = itemTemplate;
		this.count = count;
	}
	
	public Item(int itemID, int count) {
		this.itemTemplate = ItemService.getInstance().getItemTemplate(itemID);
		this.count = count;
	}
	
	public void setCount(int count) { this.count = count; }
	public int getCount() { return count; }
	public ItemTemplate getItemTemplate() { return itemTemplate; }
}
